package com.shenqi.language.converter;

import com.shenqi.language.domain.Category;
import com.shenqi.language.vo.CategoryVO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(componentModel = "spring")
public interface CategoryVOConverter {
    CategoryVOConverter INSTANCE = Mappers.getMapper(CategoryVOConverter.class);
    CategoryVO toVO(Category category);
    List<CategoryVO> toVOList(List<Category> categoryList);
}
